<?php
namespace app\admin\validate;

use think\Validate;
use think\Db;
class AccountValidate extends Validate
{
	protected $rule = [
        ['total_amount', 'require|number|total_amount', '请输入金额|金额必须是数字|金额输入错误'],
        ['s_id', 'require', '请选择申报人'],
    ];

	protected function total_amount($value){
		if($value >= 0){
			return true;
		}else{
			return false;
		}
	}
}
